package com.sjgtw.cloud.web.rescueTeam.mapper;

import com.sjgtw.cloud.web.rescueTeam.domain.RescueTeam;
import com.sjgtw.cloud.web.rescueTeam.domain.vo.RescueTeamImportVo;
import com.sjgtw.cloud.web.waterDamage.domain.WaterDamage;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 抢险队伍Mapper接口
 * 
 * @author ruoyi
 * @date 2024-03-14
 */
public interface RescueTeamMapper 
{
    /**
     * 查询抢险队伍
     * 
     * @param id 抢险队伍主键
     * @return 抢险队伍
     */
    public RescueTeam selectRescueTeamById(Long id);

    /**
     * 查询抢险队伍列表
     * 
     * @param rescueTeam 抢险队伍
     * @return 抢险队伍集合
     */
    public List<Map<String,Object>> selectRescueTeamList(RescueTeam rescueTeam);

    public List<RescueTeamImportVo> selectExportRescueTeamList(RescueTeam rescueTeam);


    /**
     * 新增抢险队伍
     * 
     * @param rescueTeam 抢险队伍
     * @return 结果
     */
    public int insertRescueTeam(RescueTeam rescueTeam);

    /**
     * 修改抢险队伍
     * 
     * @param rescueTeam 抢险队伍
     * @return 结果
     */
    public int updateRescueTeam(RescueTeam rescueTeam);

    /**
     * 删除抢险队伍
     * 
     * @param id 抢险队伍主键
     * @return 结果
     */
    public int deleteRescueTeamById(Long id);

    /**
     * 批量删除抢险队伍
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteRescueTeamByIds(Long[] ids);

    void batchSave(@Param("list") List<RescueTeamImportVo> entities);
}
